package com.sample.tdf.dto;

import cn.com.taiji.common.dto.BaseTreeDTO;
import cn.com.taiji.common.util.CommonJpaQueryWord;
import com.sample.tdf.domain.Employee;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.util.List;

/**
 * 组织机构DTO
 */
@ApiModel(value = "组织机构DTO")
@Data
@NoArgsConstructor
public class OrganizationDTO extends BaseTreeDTO {
    private static final long serialVersionUID = 2555428876699L;

    @ApiModelProperty(value = "父级id")
    private String parentId;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "机构名称")
    @Size(min = 1, max = 100, message = "机构名称长度只能在1-100之间")
    private String name;

    @ApiModelProperty(value = "机构位置")
    @Size(min = 1, max = 200, message = "机构位置长度只能在1-200之间")
    private String location;

    @ApiModelProperty(value = "返回值-机构下的员工")
    private List<EmployeeDTO> employeeList;
}
